﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MarkControle.Models.Login>" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Log On
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Log On</h2>
    <p>
       Digite seu login e senha 
       <br /><%: Html.ActionLink("Registar","registro") %> 
    </p>

    <% using (Html.BeginForm("Verifica","Login",FormMethod.Post)) { %>
        <%: Html.ValidationSummary(true, "Corrija os erros abaixo para prosseguir! ") %>
        <div>
            <fieldset>
                <legend>Infos</legend>
               
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Username) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(models => models.Username) %>
                    <%: Html.ValidationMessageFor(models => models.Username) %>
                    <%:Html.ValidationMessage("Bloq") %>
                </div>
                
                <div class="editor-label">
                    <%: Html.LabelFor(models => models.Password) %>
                </div>
                <div class="editor-field">
                    <%: Html.PasswordFor(models => models.Password) %>
                    <%: Html.ValidationMessageFor(models=> models.Password) %>
                </div>
                
                <div class="editor-label">
                   
                </div>
                
                <p>
                    <input type="submit" value="Log On" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
